///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Feb 17 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "ttcodeMainFrame.h"

///////////////////////////////////////////////////////////////////////////

MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	m_menuBar = new wxMenuBar( 0 );
	m_menuFile = new wxMenu();
	wxMenuItem* m_menuItemNewFile;
	m_menuItemNewFile = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("New File") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemNewFile );
	
	wxMenuItem* m_menuItemOpenFile;
	m_menuItemOpenFile = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Open File") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemOpenFile );
	
	wxMenuItem* m_menuItemReloadFile;
	m_menuItemReloadFile = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Reload File") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemReloadFile );
	
	wxMenuItem* m_separator1;
	m_separator1 = m_menuFile->AppendSeparator();
	
	wxMenuItem* m_menuItemSave;
	m_menuItemSave = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Save") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemSave );
	
	wxMenuItem* m_menuItemSaveAs;
	m_menuItemSaveAs = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Save As") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemSaveAs );
	
	wxMenuItem* m_menuItemSaveAllFiles;
	m_menuItemSaveAllFiles = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Save all files") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemSaveAllFiles );
	
	wxMenuItem* m_separator2;
	m_separator2 = m_menuFile->AppendSeparator();
	
	wxMenuItem* m_menuItemClose;
	m_menuItemClose = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Close") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemClose );
	
	wxMenuItem* m_menuItemCloseAll;
	m_menuItemCloseAll = new wxMenuItem( m_menuFile, wxID_ANY, wxString( _("Close All") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemCloseAll );
	
	wxMenuItem* m_separator3;
	m_separator3 = m_menuFile->AppendSeparator();
	
	m_menuRecentFile = new wxMenu();
	m_menuFile->Append( -1, _("Recent File"), m_menuRecentFile );
	
	m_menuRecentWorkspace = new wxMenu();
	m_menuFile->Append( -1, _("Recent Workspace"), m_menuRecentWorkspace );
	
	wxMenuItem* m_separator4;
	m_separator4 = m_menuFile->AppendSeparator();
	
	wxMenuItem* m_menuItemExit;
	m_menuItemExit = new wxMenuItem( m_menuFile, wxID_EXIT, wxString( _("Exit") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuFile->Append( m_menuItemExit );
	
	m_menuBar->Append( m_menuFile, _("File") ); 
	
	m_menuEdit = new wxMenu();
	wxMenuItem* m_menuItemUnDo;
	m_menuItemUnDo = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Undo") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemUnDo );
	
	wxMenuItem* m_menuItemRedo;
	m_menuItemRedo = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Redo") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemRedo );
	
	wxMenuItem* m_separator10;
	m_separator10 = m_menuEdit->AppendSeparator();
	
	wxMenuItem* m_menuItemCut;
	m_menuItemCut = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Cut") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemCut );
	
	wxMenuItem* m_menuItemCopy;
	m_menuItemCopy = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Copy") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemCopy );
	
	wxMenuItem* m_menuItemPaste;
	m_menuItemPaste = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Paste") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemPaste );
	
	wxMenuItem* m_separator11;
	m_separator11 = m_menuEdit->AppendSeparator();
	
	wxMenuItem* m_menuItemSearchAndReplace;
	m_menuItemSearchAndReplace = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Search & Replace") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemSearchAndReplace );
	
	wxMenuItem* m_separator12;
	m_separator12 = m_menuEdit->AppendSeparator();
	
	wxMenuItem* m_menuItemPreference;
	m_menuItemPreference = new wxMenuItem( m_menuEdit, wxID_ANY, wxString( _("Preference") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuEdit->Append( m_menuItemPreference );
	
	m_menuBar->Append( m_menuEdit, _("Edit") ); 
	
	m_menuView = new wxMenu();
	wxMenuItem* m_menuItemFullScreen;
	m_menuItemFullScreen = new wxMenuItem( m_menuView, wxID_ANY, wxString( _("FullScreen") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuView->Append( m_menuItemFullScreen );
	
	m_menuBar->Append( m_menuView, _("View") ); 
	
	m_menuWorkspace = new wxMenu();
	wxMenuItem* m_menuItemWorkspaceSettings;
	m_menuItemWorkspaceSettings = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("Workspace Settings") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemWorkspaceSettings );
	
	wxMenuItem* m_separator5;
	m_separator5 = m_menuWorkspace->AppendSeparator();
	
	wxMenuItem* m_menuItemCreateNewWorkspace;
	m_menuItemCreateNewWorkspace = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("Create New Workspace") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemCreateNewWorkspace );
	
	wxMenuItem* m_menuItemSwitchWorkspace;
	m_menuItemSwitchWorkspace = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("Switch Workspace") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemSwitchWorkspace );
	
	wxMenuItem* m_menuItemCloseWorkspace;
	m_menuItemCloseWorkspace = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("Close  Workspace") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemCloseWorkspace );
	
	wxMenuItem* m_menuItemReloadWorkspace;
	m_menuItemReloadWorkspace = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("Reload Workspace") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemReloadWorkspace );
	
	wxMenuItem* m_separator6;
	m_separator6 = m_menuWorkspace->AppendSeparator();
	
	wxMenuItem* m_menuItemCreateNewProject;
	m_menuItemCreateNewProject = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("Create New Project") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemCreateNewProject );
	
	wxMenuItem* m_menuItemAddExistProject;
	m_menuItemAddExistProject = new wxMenuItem( m_menuWorkspace, wxID_ANY, wxString( _("AddExistProject") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuWorkspace->Append( m_menuItemAddExistProject );
	
	wxMenuItem* m_separator13;
	m_separator13 = m_menuWorkspace->AppendSeparator();
	
	m_menuImport = new wxMenu();
	wxMenuItem* m_menuItemCMake;
	m_menuItemCMake = new wxMenuItem( m_menuImport, wxID_ANY, wxString( _("CMake") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuImport->Append( m_menuItemCMake );
	
	m_menuWorkspace->Append( -1, _("Import"), m_menuImport );
	
	m_menuBar->Append( m_menuWorkspace, _("Workspace") ); 
	
	m_menuBuild = new wxMenu();
	wxMenuItem* m_menuItemBuildNative;
	m_menuItemBuildNative = new wxMenuItem( m_menuBuild, wxID_ANY, wxString( _("Build Natvie") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuBuild->Append( m_menuItemBuildNative );
	
	wxMenuItem* m_menuItemBuildPortable;
	m_menuItemBuildPortable = new wxMenuItem( m_menuBuild, wxID_ANY, wxString( _("Build Portable") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuBuild->Append( m_menuItemBuildPortable );
	
	wxMenuItem* m_menuItemBuildByteCodeOnly;
	m_menuItemBuildByteCodeOnly = new wxMenuItem( m_menuBuild, wxID_ANY, wxString( _("Build Byte Code Only") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuBuild->Append( m_menuItemBuildByteCodeOnly );
	
	wxMenuItem* m_separator7;
	m_separator7 = m_menuBuild->AppendSeparator();
	
	wxMenuItem* m_menuItemCleanAll;
	m_menuItemCleanAll = new wxMenuItem( m_menuBuild, wxID_ANY, wxString( _("Clean All") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuBuild->Append( m_menuItemCleanAll );
	
	wxMenuItem* m_menuItemCleanCurrent;
	m_menuItemCleanCurrent = new wxMenuItem( m_menuBuild, wxID_ANY, wxString( _("Clean Current") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuBuild->Append( m_menuItemCleanCurrent );
	
	wxMenuItem* m_separator8;
	m_separator8 = m_menuBuild->AppendSeparator();
	
	wxMenuItem* m_menuItemBuildCancel;
	m_menuItemBuildCancel = new wxMenuItem( m_menuBuild, wxID_ANY, wxString( _("Cancel") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuBuild->Append( m_menuItemBuildCancel );
	
	m_menuBar->Append( m_menuBuild, _("Build") ); 
	
	m_menuHelp = new wxMenu();
	wxMenuItem* m_menuItemAbout;
	m_menuItemAbout = new wxMenuItem( m_menuHelp, wxID_ANY, wxString( _("About") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuHelp->Append( m_menuItemAbout );
	
	wxMenuItem* m_separator9;
	m_separator9 = m_menuHelp->AppendSeparator();
	
	wxMenuItem* m_menuItemCheckUpdate;
	m_menuItemCheckUpdate = new wxMenuItem( m_menuHelp, wxID_ANY, wxString( _("Check Update") ) , wxEmptyString, wxITEM_NORMAL );
	m_menuHelp->Append( m_menuItemCheckUpdate );
	
	m_menuBar->Append( m_menuHelp, _("Help") ); 
	
	this->SetMenuBar( m_menuBar );
	
	m_statusBar = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
	
	this->Centre( wxBOTH );
	
	// Connect Events
	this->Connect( m_menuItemNewFile->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemNewFileOnMenuSelection ) );
	this->Connect( m_menuItemOpenFile->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemOpenFileOnMenuSelection ) );
	this->Connect( m_menuItemReloadFile->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemReloadFileOnMenuSelection ) );
	this->Connect( m_menuItemSave->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSaveOnMenuSelection ) );
	this->Connect( m_menuItemSaveAs->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSaveAsOnMenuSelection ) );
	this->Connect( m_menuItemSaveAllFiles->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSaveAllFilesOnMenuSelection ) );
	this->Connect( m_menuItemClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCloseOnMenuSelection ) );
	this->Connect( m_menuItemCloseAll->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCloseAllOnMenuSelection ) );
	this->Connect( m_menuItemExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemExitOnMenuSelection ) );
	this->Connect( m_menuItemCreateNewWorkspace->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCreateNewWorkspaceOnMenuSelection ) );
	this->Connect( m_menuItemSwitchWorkspace->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSwitchWorkspaceOnMenuSelection ) );
	this->Connect( m_menuItemCMake->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCMakeOnMenuSelection ) );
	this->Connect( m_menuItemBuildNative->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildNativeOnMenuSelection ) );
	this->Connect( m_menuItemBuildPortable->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildPortableOnMenuSelection ) );
	this->Connect( m_menuItemBuildByteCodeOnly->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildByteCodeOnlyOnMenuSelection ) );
	this->Connect( m_menuItemCleanAll->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCleanAllOnMenuSelection ) );
	this->Connect( m_menuItemCleanCurrent->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCleanCurrentOnMenuSelection ) );
	this->Connect( m_menuItemBuildCancel->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildCancelOnMenuSelection ) );
}

MainFrame::~MainFrame()
{
	// Disconnect Events
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemNewFileOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemOpenFileOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemReloadFileOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSaveOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSaveAsOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSaveAllFilesOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCloseOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCloseAllOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemExitOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCreateNewWorkspaceOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemSwitchWorkspaceOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCMakeOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildNativeOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildPortableOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildByteCodeOnlyOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCleanAllOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemCleanCurrentOnMenuSelection ) );
	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrame::m_menuItemBuildCancelOnMenuSelection ) );
	
}
